import request from '@/utils/request'

// 功率
export function getPower(params) {
  return request({
    url: '/tsdb/elec/chart/power',
    method: 'get',
    params
  })
}

// 电流
export function getCurrent(params) {
  return request({
    url: '/tsdb/elec/chart/current',
    method: 'get',
    params
  })
}

// 线电压
export function getVoltageWires(params) {
  return request({
    url: '/tsdb/elec/chart/voltage/wires',
    method: 'get',
    params
  })
}

// 电量
export function energy(params) {
  return request({
    url: '/tsdb/elec/chart/energy/active',
    method: 'get',
    params
  })
}
